def run(params:list[str]):
    import json
    from ApiTools import apiTools,apiBase
    vec_name=apiBase.argv(params,1,"rft/relevancy")
    quest=apiBase.argv(params,2,"The FIFA World Cup in 2018 was won by the French national football team")
    key=apiBase.argv(params,3,"%FIFA World Cup%")

    try:
        vectdb = apiTools.load_vec()
        # 根据函数的描述  训练 函数名字，函数参数
        vectdb.train_QA(collect_name=vec_name,question=quest, sql='',key=key,fun_name='rft-doc')
        return 'load txt  ok'
    except Exception as e:
        return f"function error:{e}"
#run([])